package com.gxa.dr2.pojo;



import java.sql.Timestamp;
import java.util.List;

public class Role {

  private Integer roleId;
  private String roleCode;
  private String roleName;
  private Integer deptId;
  private String roleRemark;
  private Timestamp createTime;
  private Timestamp updateTime;
  private Integer isDeleted;
  /**
   * 角色所拥有的权限
   */
  private List<Permission> permissions;

  public Role() {
  }

  public List<Permission> getPermissions() {
    return permissions;
  }

  public void setPermissions(List<Permission> permissions) {
    this.permissions = permissions;
  }

  public Integer getRoleId() {
    return roleId;
  }

  public void setRoleId(Integer roleId) {
    this.roleId = roleId;
  }


  public String getRoleCode() {
    return roleCode;
  }

  public void setRoleCode(String roleCode) {
    this.roleCode = roleCode;
  }


  public String getRoleName() {
    return roleName;
  }

  public void setRoleName(String roleName) {
    this.roleName = roleName;
  }


  public Integer getDeptId() {
    return deptId;
  }

  public void setDeptId(Integer deptId) {
    this.deptId = deptId;
  }


  public String getRoleRemark() {
    return roleRemark;
  }

  public void setRoleRemark(String roleRemark) {
    this.roleRemark = roleRemark;
  }


  public Timestamp getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Timestamp createTime) {
    this.createTime = createTime;
  }


  public Timestamp getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(Timestamp updateTime) {
    this.updateTime = updateTime;
  }


  public Integer getIsDeleted() {
    return isDeleted;
  }

  public void setIsDeleted(Integer isDeleted) {
    this.isDeleted = isDeleted;
  }

  @Override
  public String toString() {
    return "Role{" +
            "roleId=" + roleId +
            ", roleCode='" + roleCode + '\'' +
            ", roleName='" + roleName + '\'' +
            ", deptId=" + deptId +
            ", roleRemark='" + roleRemark + '\'' +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
            ", isDeleted=" + isDeleted +
            ", permissions=" + permissions +
            '}';
  }
}
